home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / Xprof / xmeasure / Makefile < prev    next >
Makefile  |  1994-08-01  |  9KB  |  306 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
  3.  
  4. ###########################################################################
  5. # Makefile generated from "Imake.tmpl" and <Imakefile>
  6. # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  7. #
  8. # Platform-specific parameters may be set in the appropriate .cf
  9. # configuration files.  Site-wide parameters may be set in the file
  10. # site.def.  Full rebuilds are recommended if any parameters are changed.
  11. #
  12. # If your C preprocessor doesn't define any unique symbols, you'll need
  13. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  14. # "make Makefile", "make Makefiles", or "make World").
  15. #
  16. # If you absolutely can't get imake to work, you'll need to set the
  17. # variables at the top of each Makefile as well as the dependencies at the
  18. # bottom (makedepend will do this automatically).
  19. #
  20.  
  21. ###########################################################################
  22. # platform-specific configuration parameters - edit sgi.cf to change
  23.  
  24. CRT1 = /usr/lib/crt1.o
  25. CRTN = /usr/lib/crtn.o
  26.  
  27. ###########################################################################
  28. # site-specific configuration parameters - edit site.def to change
  29.  
  30. # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  31.  
  32.         OPTIMIZER = -O2
  33.  
  34.             SHELL = /bin/sh
  35.  
  36.               TOP = .
  37.       CURRENT_DIR = .
  38.  
  39.                AR = ar scq
  40.   BOOTSTRAPCFLAGS = "$(OPTIMIZER)"
  41.                CC = cc
  42.  
  43.          COMPRESS = compress
  44.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  45.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  46.           INSTALL = bsdinst.sh
  47.                LD = ld
  48.              LINT = lint
  49.       LINTLIBFLAG = -o
  50.          LINTOPTS = -ax
  51.                LN = ln -s
  52.  
  53.                MV = mv
  54.                CP = cp
  55.            RANLIB = /bin/true
  56.   RANLIBINSTFLAGS =
  57.                RM = rm -f
  58.   VENDOR_INCLUDES =
  59.      STD_INCLUDES =
  60.   STD_CPP_DEFINES = -DSYSV
  61.       STD_DEFINES = -DSYSV -DMALLOC_0_RETURNS_NULL
  62.  EXTRA_LOAD_FLAGS =
  63.   EXTRA_LIBRARIES = -lsun -lmalloc -lc_s
  64.              TAGS = ctags
  65.  
  66.     SHAREDCODEDEF = -DSHAREDCODE
  67.          SHLIBDEF = -DATTSHAREDLIB
  68.  
  69.     PROTO_DEFINES = -DFUNCPROTO -DNARROWPROTO
  70.  
  71.      INSTPGMFLAGS = -s
  72.  
  73.      INSTBINFLAGS = -m 0755
  74.      INSTUIDFLAGS = -m 4755
  75.      INSTLIBFLAGS = -m 0664
  76.      INSTINCFLAGS = -m 0444
  77.      INSTMANFLAGS = -m 0444
  78.      INSTDATFLAGS = -m 0444
  79.     INSTKMEMFLAGS = -m 2755 -g sys
  80.  
  81.           DESTDIR =
  82.  
  83.      TOP_INCLUDES = -I$(INCROOT)
  84.  
  85.       CDEBUGFLAGS = $(OPTIMIZER)
  86.         CCOPTIONS = -prototypes -cckr -float
  87.       COMPATFLAGS =
  88.  
  89.       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES) $(VENDOR_INCLUDES)
  90.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  91.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  92.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  93.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  94.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  95.    LDCOMBINEFLAGS = -r
  96.  
  97.         MACROFILE = sgi.cf
  98.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  99.  
  100.     IMAKE_DEFINES =
  101.  
  102.          IRULESRC = $(CONFIGDIR)
  103.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  104.  
  105.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  106.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  107.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  108.  
  109. ###########################################################################
  110. # X Window System Build Parameters
  111. # $XConsortium: Project.tmpl,v 1.68 90/07/03 12:14:47 rws Exp $
  112.  
  113. ###########################################################################
  114. # X Window System make variables; this need to be coordinated with rules
  115. # $XConsortium: Project.tmpl,v 1.68 90/07/03 12:14:47 rws Exp $
  116.  
  117.           PATHSEP = /
  118.         USRLIBDIR = $(DESTDIR)/usr/lib
  119.            BINDIR = $(DESTDIR)/usr/bin/X11
  120.           INCROOT = $(DESTDIR)/usr/include
  121.      BUILDINCROOT = $(TOP)
  122.       BUILDINCDIR = $(BUILDINCROOT)/X11
  123.       BUILDINCTOP = ..
  124.            INCDIR = $(INCROOT)/X11
  125.            ADMDIR = $(DESTDIR)/usr/adm
  126.            LIBDIR = $(USRLIBDIR)/X11
  127.         CONFIGDIR = $(LIBDIR)/config
  128.        LINTLIBDIR = $(USRLIBDIR)/lint
  129.  
  130.           FONTDIR = $(LIBDIR)/fonts
  131.          XINITDIR = $(LIBDIR)/xinit
  132.            XDMDIR = $(LIBDIR)/xdm
  133.            AWMDIR = $(LIBDIR)/awm
  134.            TWMDIR = $(LIBDIR)/twm
  135.            GWMDIR = $(LIBDIR)/gwm
  136.           MANPATH = $(DESTDIR)/usr/man
  137.     MANSOURCEPATH = $(MANPATH)/man
  138.            MANDIR = $(MANSOURCEPATH)n
  139.         LIBMANDIR = $(MANSOURCEPATH)3
  140.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  141.  
  142.        FONTCFLAGS = -t
  143.  
  144.      INSTAPPFLAGS = $(INSTDATFLAGS)
  145.  
  146.             IMAKE = imake
  147.            DEPEND = makedepend
  148.               RGB = rgb
  149.  
  150.             FONTC = bdftopcf
  151.  
  152.         MKFONTDIR = mkfontdir
  153.  
  154.         MKDIRHIER = mkdir -p
  155.  
  156.         CONFIGSRC = $(TOP)/config
  157.         CLIENTSRC = $(TOP)/clients
  158.           DEMOSRC = $(TOP)/demos
  159.            LIBSRC = $(TOP)/lib
  160.  
  161.           FONTSRC = $(TOP)/fonts.pcf
  162.  
  163.        INCLUDESRC = $(TOP)/X11
  164.         SERVERSRC = $(TOP)/server
  165.           UTILSRC = $(TOP)/util
  166.         SCRIPTSRC = $(UTILSRC)/scripts
  167.        EXAMPLESRC = $(TOP)/examples
  168.        CONTRIBSRC = $(TOP)/../contrib
  169.            DOCSRC = $(TOP)/doc
  170.            RGBSRC = $(TOP)/rgb
  171.         DEPENDSRC = $(UTILSRC)/makedepend
  172.          IMAKESRC = $(CONFIGSRC)
  173.          XAUTHSRC = $(LIBSRC)/Xau
  174.           XLIBSRC = $(LIBSRC)/X
  175.            XMUSRC = $(LIBSRC)/Xmu
  176.        TOOLKITSRC = $(LIBSRC)/Xt
  177.        AWIDGETSRC = $(LIBSRC)/Xaw
  178.        OLDXLIBSRC = $(LIBSRC)/oldX
  179.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  180.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  181.       BDFTOSNFSRC = $(FONTSRC)/tools/bdftosnf
  182.       BDFTOPCFSRC = $(FONTSRC)/tools/bdftopcf
  183.      MKFONTDIRSRC = $(FONTSRC)/tools/mkfontdir
  184.      EXTENSIONSRC = $(TOP)/extensions
  185.  
  186.   DEPEXTENSIONLIB =  $(USRLIBDIR)/libXext.a
  187.      EXTENSIONLIB =   -lXext
  188.  
  189.           DEPXLIB = $(DEPEXTENSIONLIB)  $(USRLIBDIR)/libX11_s.a
  190.              XLIB = $(EXTENSIONLIB)  -lX11_s
  191.  
  192.       DEPXAUTHLIB =  $(USRLIBDIR)/libXau.a
  193.          XAUTHLIB =   -lXau
  194.  
  195.         DEPXMULIB =  $(USRLIBDIR)/libXmu.a
  196.            XMULIB =   -lXmu
  197.  
  198.        DEPOLDXLIB =  $(USRLIBDIR)/liboldX.a
  199.           OLDXLIB =   -loldX
  200.  
  201.       DEPXTOOLLIB =  $(USRLIBDIR)/libXt_s.a
  202.          XTOOLLIB =  -lXt_s
  203.  
  204.         DEPXAWLIB =  $(USRLIBDIR)/libXaw.a
  205.            XAWLIB =   -lXaw
  206.  
  207.          DEPXILIB =  $(USRLIBDIR)/libXi.a
  208.             XILIB =   -lXi
  209.  
  210.  LINTEXTENSIONLIB =  $(LINTLIBDIR)/llib-lXext.ln
  211.          LINTXLIB =  $(LINTLIBDIR)/llib-lX11.ln
  212.           LINTXMU =  $(LINTLIBDIR)/llib-lXmu.ln
  213.         LINTXTOOL =  $(LINTLIBDIR)/llib-lXt.ln
  214.           LINTXAW =  $(LINTLIBDIR)/llib-lXaw.ln
  215.  
  216.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  217.  
  218.          DEPLIBS1 = $(DEPLIBS)
  219.          DEPLIBS2 = $(DEPLIBS)
  220.          DEPLIBS3 = $(DEPLIBS)
  221.  
  222. ###########################################################################
  223. # Imake rules for building libraries, programs, scripts, and data files
  224. # rules:  $XConsortium: Imake.rules,v 1.70 90/05/04 16:57:30 keith Exp $
  225.  
  226. ###########################################################################
  227. # start of Imakefile
  228.  
  229.         PROGRAMS = xmeasure
  230.          HEADERS = perf.h tests.h
  231.             SRCS = main.c runtests.c table.c timer.c tstcolor.c tstgfx.c \
  232.                    tstmisc.c tstprops.c tsttxt.c tstwins.c
  233.             OBJS = main.o runtests.o table.o timer.o tstcolor.o tstgfx.o \
  234.                    tstmisc.o tstprops.o tsttxt.o tstwins.o
  235.    SYS_LIBRARIES = -lX11_s
  236.       VERSION = 1.01
  237.      CFLAGS    = -DXLIB_ILLEGAL_ACCESS
  238.  
  239.         PROGRAM = xmeasure
  240.  
  241. all:: xmeasure
  242.  
  243. xmeasure: $(OBJS) $(DEPLIBS)
  244.      $(RM) $@ ; \
  245.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  246.  
  247. install:: xmeasure
  248.     $(INSTALL) -c $(INSTPGMFLAGS) $(INSTALLFLAGS) xmeasure $(BINDIR)
  249.  
  250. install.man:: xmeasure.man
  251.     $(INSTALL) -c $(INSTMANFLAGS) xmeasure.man $(MANDIR)/xmeasure.n
  252.  
  253. depend::
  254.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  255.  
  256. lint:
  257.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  258. lint1:
  259.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  260.  
  261. clean::
  262.     $(RM) $(PROGRAM)
  263.  
  264. tar:
  265.     -rm -f xmeasure xmeasure_$(VERSION).tar.Z
  266.     cp Makefile Makefile.bak
  267.     tar chf xmeasure_$(VERSION).tar Imakefile Makefile $(HEADERS) $(SRCS) xmeasure.1;
  268.     mv Makefile.bak Makefile
  269.     compress xmeasure_$(VERSION).tar
  270.  
  271. ###########################################################################
  272. # common rules for all Makefiles - do not edit
  273.  
  274. emptyrule::
  275.  
  276. clean::
  277.     $(RM_CMD) \#*
  278.  
  279. Makefile::
  280.     -@if [ -f Makefile ]; then \
  281.         echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  282.         $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  283.     else : ; fi ; \
  284.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  285.  
  286. tags::
  287.     $(TAGS) -w *.[ch]
  288.     $(TAGS) -xw *.[ch] > TAGS
  289.  
  290. ###########################################################################
  291. # empty rules for directories that do not have SUBDIRS - do not edit
  292.  
  293. install::
  294.     @echo "install in $(CURRENT_DIR) done"
  295.  
  296. install.man::
  297.     @echo "install.man in $(CURRENT_DIR) done"
  298.  
  299. Makefiles::
  300.  
  301. includes::
  302.  
  303. ###########################################################################
  304. # dependencies generated by makedepend
  305.  
  306.